k3s Installation

  • Local Single Node
    • See autok3s in k3s notes
    curl -sfL https://get.k3s.io | sh -
    sudo service k3s status
    # config
    /etc/rancher/k3s/k3s.yaml
    
    curl -sLS https://dl.get-arkade.dev | sh
    ark get k3sup
    ark get kubectl
    ark get helm
    
    cat /var/lib/rancher/k3s/server/token
  • k3s install direct
    curl -sLS https://get.k3s.io | \
    INSTALL_K3S_CHANNEL='stable' \
    INSTALL_K3S_EXEC='server --advertise-address=172.31.43.103 --cluster-cidr=10.42.0.0/16 --node-external-ip=54.224.109.33 --tls-san=172.31.43.103 --tls-san=54.224.109.33 ' \
    K3S_TOKEN='19a6b3ec549d411488a85519c56c4ffc' \
    sh -"
  • ubuntu 20 base install